package huahua.microconfigclient.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: zhanghuadi
 * @date: 2018/5/15 0015
 * @description:
 */
@RestController
@RefreshScope
public class Controller {

    @Value("${hello}")
    private String hello;

    @RequestMapping("/hello")
    public String helloFromGit(){
        return this.hello;
    }
}
